import React from 'react';
import { useRoutes } from 'react-router-dom';
import routes from '@/routes';
import AppSetting from '@/components/AppSetting';
import LayoutPage from '@/pages/Layout';
import 'rc-texty/assets/index.css';
import "swiper/css"
import "swiper/css/navigation"
import "swiper/css/pagination"
import "swiper/css/a11y"
import "swiper/css/autoplay"
import "swiper/css/effect-cards"
import "swiper/css/scrollbar"
// import 'default-passive-events'

export default function App() {
  const router = useRoutes(routes);
  return (
    <AppSetting>
      <LayoutPage>{router}</LayoutPage>
    </AppSetting>
  );
}
